package com.yantong.constant;

/**
 * @author kanghaixin
 * @date 2018/3/29.11:25
 */
public enum BusinessCode {
    ACCOUNT_OR_PSW_ERROR("1001","账号或密码错误") ,
    ACCOUNT_LOCKED_ERROR("1002", "账号已经被锁定"),
    PARAM_LOSE_ERROR("1003", "缺失参数"),
    ACHIEVE_CONFIG_ORDERNUM_ERROR("1004", "业绩配置最低或最高单量可能已处于某级别区间内"),
    FILE_IMPORT_ERROR("1005", "文件上传错误"),
    FILE_FORMAT_ERROR("1006", "文件格式错误"),
    VERIFYCODE_NULL("1007", "验证码不能为空"),
    VERIFYCODE_ERROR("1008", "验证码输入错误"),
    ACCOUNT_NOT_EXIST("1009", "账号不存在"),
    MOBILE_NOT_EXIST("1010", "手机号不能为空"),
    MOBILE_NOT_VERIFY("1010", "手机号未验证"),

    PERM_SAVE_ERROR("2001", "权限信息保存失败"),
    PERM_UPDATE_ERROR("2002", "权限信息更新失败"),
    PERM_DELETE_ERROR("2003", "权限信息删除失败"),

    ROLE_SAVE_ERROR("2004", "角色信息保存失败"),
    ROLE_UPDATE_ERROR("2005", "角色信息更新失败"),
    ROLE_DELETE_ERROR("2006", "角色信息删除失败"),

    PASSWORD_IS_NULL("2007", "密码不能为空"),
    PASSWORD_NO_EQUALS("2008","两次密码输入不一致"),
    ROLE_DELETE_ILLEGAL("2009", "角色信息不能删除"),

    BUSINESS_LICENSE_NULL("3001", "企业营业执照编号不能为空"),
    BUSINESS_CATEGORY_NULL("3002", "企业经营类别不能为空"),
    REGIST_CAPITAL_NULL("3003", "企业注册资本不能为空"),
    REGIST_DATE_NULL("3004", "企业注册日期不能为空"),
    VOUCHER_CANCEL_OVERTIME_ERROR("3005", "凭证已被删除超过24小时"),
    CENTRE_RATE_EXIST("3006", "商户费率配置已存在"),
    CENTRE_INSUFFICIENT_AMOUNT("3007","商户金额不够"),
    CENTRE_TERMINAL_EXIST("3008", "商家门店终端配置已存在"),
    CENTRE_CENTRE_INDUSTRY("3009", "商户行业配置已存在"),

    DEPT_HAVE_EMP_REMOVE_ERROR("4001","部门下已有员工不能删除部门"),
    DUTY_HAVE_EMP_REMOVE_ERROR("4002","岗位下已有员工不能删除部门"),
    BALANCE_NOT_ENOUGH("4003", "余额不足,部分记账不成功!"),
    PAY_PART_AMOUNT_NULL("4004", "资金项金额错误"),
    USER_RELATE_CENTRE_ERROR("4005", "当前用户未关联商户"),
    USER_CENTRE_ERROR("4006", "当前用户关联商户不存在或已失效"),
    CASH_OVER_BALANCE("4007", "提现金额不能大于当前余额"),
    DEDUCT_OVER_BALANCE("4008", "扣款金额不能大于当前余额"),
    CENTER_ACCOUNT_NOT_FOUNT("4009", "商户账户不存在"),
    CENTER_RATE_NOT_FOUNT("4009", "商户费率记录不存在"),
    CENTER_AMOUNT_NO_BALANCE("4010", "商户账户余额不足!"),
    CENTER_AMOUNT_RECHARGE_FAIL("4011", "平台给商户充值失败!"),
    TFB_DF_FAIL("4012", "天付宝打款失败!"),
    TFB_DF_FAIL1("4013", "打款信息记录新增异常!"),
    TFB_DF_FAIL2("4014", "请完善个人资料真实姓名!"),

    CUSTOMER_CLOSE_WORKORDER("5001", "客服关闭工单"),
    FORWORD_CW_COMMENT("5002", "移交系统财务处理中... 处理结果，退款到账户余额：%s元;退款到微信零钱：%s元"),
    FINANCE_REFUSE_WORKORDER("5003", "财务拒绝工单"),
    WORK_ORDER_NUMS_ERROR("5004", "售后数量不能超过订单商品的数量"),
    WORK_ORDER_MONEY_ERROR("5004", "售后金额不能超过订单商品的总金额"),
    WORK_ORDER_PAYED("5005", "工单已打款"),


    ORDER_INFO_ISNULL("6001", "订单信息为空"),
    ORDER_PRODUCTS_ISNULL("6002", "订单商品信息为空"),
    ORDER_PRODUCTS_ERROR("6003", "订单商品信息错误"),
    ORDER_PARTIAL_STOCK_LOW("6004", "订单中商品已卖完啦"),
    ORDER_PRODUCT_SKU_ERROR("6005", "订单商品规格错误"),
    ORDER_MOBILE_ISNULL("6006", "联系方式为空"),
    ORDER_SUBMIT_PARAMS_ERROR("6007", "创建订单参数错误"),
    TICKET_RECORD_DISABLED("6008", "优惠券不存在或已失效"),
    TICKET_RECORD_ERROR("6009", "优惠券信息错误"),
    TICKET_SEND_LIMIT_ERROR("6010", "优惠券已超过发放限制"),
    ORDER_STATUS_ERROR("6011", "订单状态错误"),
    TICKET_SEND_OVER_ERROR("6012", "优惠券已发放完毕"),
    TICKET_SEND_OVER_ERROR1("6013", "您已领取过该优惠券"),
    ORDER_PAYED_ERROR("6013", "订单状态错误，无法支付"),
    ORDER_PAY_ERROR("6013", "订单支付状态更新失败"),
    ORDER_CANCEL_ERROR("6014", "该订单状态下无法取消订单"),
    ORDER_CANCEL_OVERTIME("6015", "购买商品已截团，无法取消订单"),
    //BUY_MAX_TOO_MANY("6016", "已超过单个商品购买数量限制"),
    BUY_MAX_TOO_MANY("6016", "亲，你来晚了，已售罄~"),
    REFUND_PRODUCT_STOCK_ERROR("6017", "取消订单人数较多,请稍后再试！"),
    SUBMIT_ORDER_MAX_ERROR("6018", "下单人数较多,您来晚啦!"),
    BUY_MAX_LG_TOO_MANY("6019", "已超过单个商品累计购买数量限制"),
    CREATE_ORDER_ERROR("6020", "创建订单失败"),
    ORDER_REFUNDED_ERROR("6021", "订单已在退款申请中,不能重复提交申请"),
    ORDER_SPELLGROUP_ERROR("60122", "拼团成功不接受退款"),
    ORDER_STATUS_ISNOT_WAITSEND("6023", "订单状态错误，操作失败"),
    ORDER_TYPE_ISNOT_TAKEOUTFOOD("6024", "订单类型错误，操作失败"),
    ORDER_DELIVERY_ADDRESS_ERROR("6025", "详细地址或门牌号信息不完整！"),
    ORDER_LATLNG_ERROR("6026", "请点击详细地址选择坐标位置信息！"),
    ORDER_USERINFO_ERROR_CANCEL_ERROR("6027", "订单用户信息错误，无法取消"),
    ORDER_TEAMINFO_ERROR_CANCEL_ERROR("6028", "订单门店信息错误，无法取消"),

    BANK_ERROR1("10001","打款记录中存在无银行卡信息!"),

    MEMBER_INFO_ISNULL("7001", "会员信息为空"),
    MEMBER_FANS_IS_FOLLOWED("7002", "会员已经是关注状态"),
    MEMBER_FANS_IS_UN_FOLLOWED("7003", "会员已经是非关注状态"),
    MEMBER_NOT_BIND_TEAM("7004", "会员未绑定门店"),
    MEMBER_BALANCE_NOT_ENOUGH("7005", "余额不足,请充值后支付"),
    SUPPLY_BIND_MEMBER_ERROR("7006", "供应商绑定的会员信息错误"),
    MEMBER_VIP_PRICE_ERROR("7007", "会员VIP价格设置为空"),
    MEMBER_VIP_ALREADY("7008", "会员已经是VIP"),
    SUPPLY_BIND_BUYER_ERROR("7009", "供应商绑定的买手不存在"),
    MEMBER_VIP_SET_ERROR("7010", "会员VIP参数设置错误"),
    ACTIVITY_AUTHORITY_ERROR("7011","无权限购买该大礼包"),

    MEMBER_SHIPCARD_ALREADY("2001", "充值卡错误"),
    MEMBER_INSUFFICIENT_AMOUNT("2002","用户金额为不够"),
    MEMBER_SHIPCARD_ISNULL("2003", "充值卡为空"),
    MEMBER_SHIPCARD_ALOT("2004", "已超过了购买限制"),

    COMMISSION_GRANT_ALREADY("8001", "佣金已发放或已失效"),
    COMMISSION_NOT_FOUND("8002", "佣金记录不存在"),

    UNALLOCATED_LINE("9001", "未分配线路"),
    EXIST_UNALLOCATED_LINE("9002", "存在未分配线路的小区"),
    SYSTEM_EXCEPTION("10001", "系统异常, 请联系管理员..."),
    SYSTEM_NODIRECTNULL("9003", "勾选商品已撤回"),
    DATA_NULL("10002", "无数据, 无法导出...");

    private String code;
    private String msg;
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    BusinessCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
